package net.xdclass.onlinexdclass.exception;

import lombok.Data;

/**
 * 自定义异常类
 */
@Data
public class XDException extends RuntimeException{

    private Integer code;

    private String message;

    public XDException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }



    public XDException() {
        super();
    }


    public XDException(String s) {
        this.message = s;

    }


    public XDException(String message, Throwable cause) {
        super(message, cause);
    }


    public XDException(Throwable cause) {
        super(cause);
    }

    static final long serialVersionUID = -1848914673093119416L;

}
